@@ -1,3 +1,2 @@ |
||
| 1 | 1 |
uri = URI.parse(ENV["REDISTOGO_URL"]) |
| 2 |
-REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password) |
|
| 3 |
-Resque.redis = REDIS |
|
| 2 |
+REDIS_WORKER = Redis.new(host: uri.host, port: uri.port, password: uri.password) |
@@ -1 +1,2 @@ |
||
| 1 |
-Resque.inline = Rails.env.test? |
|
| 1 |
+Resque.inline = Rails.env.test? |
|
| 2 |
+Resque.redis = REDIS_WORKER |
@@ -28,7 +28,7 @@ after_fork do |server, worker| |
||
| 28 | 28 |
|
| 29 | 29 |
# If you are using Redis but not Resque, change this |
| 30 | 30 |
if defined?(Resque) |
| 31 |
- Resque.redis = REDIS |
|
| 31 |
+ Resque.redis = REDIS_WORKER |
|
| 32 | 32 |
Rails.logger.info('Connected to Redis')
|
| 33 | 33 |
end |
| 34 | 34 |
end |